  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8fafc;
            color: #334155;
            line-height: 1.6;
        }

        .product-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }

        /* 商品主区域 */
        .product-main {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            margin-bottom: 3rem;
            background-color: #fff;
            border-radius: 8px;
            padding: 2rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .product-gallery {
            flex: 1;
            min-width: 300px;
            max-width: 500px;
        }

        .main-image {
            width: 100%;
            overflow: hidden;
            border-radius: 6px;
        }

        .main-image img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        .product-details {
            flex: 1;
            min-width: 300px;
            max-width: 600px;
        }

        .product-title {
            font-size: 1.8rem;
            color: #1e293b;
            margin-bottom: 1.5rem;
            font-weight: 600;
        }

        .price-section {
            margin: 1.5rem 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .price-label {
            color: #64748b;
            font-size: 1rem;
        }

        .price-value {
            color: #3b82f6;
            font-size: 1.8rem;
            font-weight: 700;
        }

        .section-title {
            font-size: 1.2rem;
            color: #1e293b;
            margin: 1.5rem 0 1rem;
            font-weight: 600;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 0.5rem;
        }

        .product-description p {
            line-height: 1.6;
            color: #475569;
        }

        .specs-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        .spec-item {
            padding: 0.5rem 1rem;
            background-color: #f1f5f9;
            border-radius: 4px;
            color: #334155;
            font-size: 0.9rem;
        }

        .quantity-selector {
            margin: 2rem 0;
        }

        .quantity-control {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .quantity-control button {
            width: 36px;
            height: 36px;
            background-color: #e2e8f0;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            cursor: pointer;
            color: #475569;
            transition: background-color 0.2s;
        }

        .quantity-control button:hover {
            background-color: #cbd5e1;
        }

        .quantity-control input {
            width: 60px;
            height: 36px;
            text-align: center;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            font-size: 1rem;
        }

        /* 操作按钮 */
        .action-buttons {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .btn-buy,
        .btn-cart {
            flex: 1;
            padding: 1rem;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-buy {
            background-color: #3b82f6;
            color: white;
        }

        .btn-buy:hover {
            background-color: #2563eb;
        }

        .btn-cart {
            background-color: #e2e8f0;
            color: #334155;
        }

        .btn-cart:hover {
            background-color: #cbd5e1;
        }

        /* 评价区域 */
        .product-reviews {
            background-color: #fff;
            border-radius: 8px;
            padding: 2rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .reviews-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .reviews-stats {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .rating-summary {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .rating-score {
            font-size: 2.5rem;
            font-weight: 700;
            color: #f59e0b;
        }

        .stars-large {
            display: flex;
            gap: 0.2rem;
            margin: 0.5rem 0;
        }

        .stars-large i {
            color: #f59e0b;
            font-size: 1.2rem;
        }

        .rating-count {
            color: #64748b;
            font-size: 0.9rem;
        }

        .filter-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            background-color: #f1f5f9;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            color: #334155;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background-color: #3b82f6;
            color: white;
            border-color: #3b82f6;
        }

        .filter-btn i {
            margin-right: 0.3rem;
        }

        .reviews-list {
            margin-top: 1.5rem;
        }

        .review-item {
            padding: 1.5rem 0;
            border-bottom: 1px solid #e2e8f0;
        }

        .review-item:last-child {
            border-bottom: none;
        }

        .review-header {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            gap: 0.8rem;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            overflow: hidden;
            background-color: #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .user-avatar .initials {
            font-weight: 600;
            color: #64748b;
        }

        .review-user-info {
            flex-grow: 1;
        }

        .review-user {
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 0.2rem;
        }

        .review-date {
            color: #64748b;
            font-size: 0.85rem;
        }

        .review-rating {
            display: flex;
            gap: 0.2rem;
            margin-bottom: 0.8rem;
        }

        .review-rating i {
            color: #f59e0b;
            font-size: 0.9rem;
        }

        .review-content {
            color: #475569;
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .review-images {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            margin-top: 1rem;
        }

        .review-image {
            width: 80px;
            height: 80px;
            border-radius: 6px;
            overflow: hidden;
            cursor: pointer;
            border: 1px solid #e2e8f0;
        }

        .review-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .review-image:hover img {
            transform: scale(1.05);
        }

        .no-reviews {
            color: #64748b;
            text-align: center;
            padding: 2rem 0;
        }

        /* 模态框 */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .success-modal {
            background-color: white;
            padding: 2rem;
            border-radius: 8px;
            text-align: center;
            max-width: 300px;
            width: 90%;
        }

        .success-icon {
            font-size: 2.5rem;
            color: #10b981;
            margin-bottom: 1rem;
        }

        .success-message {
            font-size: 1.2rem;
            color: #1e293b;
            margin-bottom: 1.5rem;
        }

        .btn-modal {
            padding: 0.75rem 1.5rem;
            background-color: #3b82f6;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s;
            width: 100%;
        }

        .btn-modal:hover {
            background-color: #2563eb;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .product-main {
                flex-direction: column;
            }

            .action-buttons {
                flex-direction: column;
            }

            .reviews-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .reviews-stats {
                width: 100%;
                justify-content: space-between;
            }

            .filter-controls {
                width: 100%;
                justify-content: center;
            }
        }

        .product-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-content {
    display: flex;
    gap: 2rem;
}

/* 左侧样式 */
.product-left {
    flex: 1;
    max-width: 500px;
}

.product-image {
    width: 100%;
    margin-bottom: 2rem;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-comments {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-comments h3 {
    margin-bottom: 1rem;
    color: #333;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
}

/* 右侧样式 */
.product-right {
    flex: 1;
}

.product-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-info h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.product-price {
    margin: 1.5rem 0;
    font-size: 1.5rem;
}

.price-label {
    color: #666;
}

.price-value {
    color: #ff4d4f;
    font-weight: bold;
}

.product-description,
.product-specs,
.product-quantity {
    margin: 1.5rem 0;
}

.product-description h3,
.product-specs h3,
.product-quantity h3 {
    color: #333;
    margin-bottom: 1rem;
}

.specs-container {
    margin-bottom: 1rem;
}

.spec-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.spec-name {
    min-width: 90px;
    font-weight: bold;
    color: #333;
    margin-right: 1.5rem;
    font-size: 1rem;
}

.spec-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.spec-option {
    padding: 0.5rem 1.2rem;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    background: #fff;
    color: #333;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.spec-option.active {
    border-color: #ff6700;
    color: #ff6700;
    background: #fff7f0;
    font-weight: bold;
}

.spec-option:hover {
    border-color: #ff6700;
    color: #ff6700;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-control input {
    width: 60px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #0056b3;
}

/* 渐变色大按钮风格 */
.product-actions {
    display: flex;
    gap: 0;
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255,152,0,0.08);
}
.buy-now-btn, .add-to-cart-btn {
    flex: 1 1 0;
    padding: 16px 0;
    font-size: 18px;
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    color: #fff;
    border-radius: 0;
    box-shadow: none;
    letter-spacing: 1px;
}
.buy-now-btn {
    background: linear-gradient(90deg, #ff7300 0%, #ffb347 100%);
}
.add-to-cart-btn {
    background: linear-gradient(90deg, #ffd200 0%, #ff9800 100%);
}
.buy-now-btn:hover {
    background: linear-gradient(90deg, #ff5c00 0%, #ffa500 100%);
}
.add-to-cart-btn:hover {
    background: linear-gradient(90deg, #ffc300 0%, #ff8000 100%);
}

/* 评论样式 */
.comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-user {
    font-weight: bold;
    color: #333;
}

.comment-date {
    color: #999;
    font-size: 0.9rem;
}

.comment-content {
    color: #666;
    line-height: 1.5;
} 

/* 购物车成功提示弹窗样式 */
.modal {
    display: flex;
    align-items: center; 
    justify-content: center;
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.5);
}

.success-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    width: 80%;
    max-width: 300px; 
    text-align: center; 
}

.success-icon {
    font-size: 2.5rem; 
    color: #28a745;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.2rem;
    color: #333; 
    margin-bottom: 0.5rem; 
}

.coupon-tip {
    font-size: 0.9rem; 
    color: #666; 
    margin-bottom: 1.5rem; 
}

.go-to-cart-btn {
    background-color: #ff9800; 
    color: white;
    padding: 10px 20px; 
    border: none;
    border-radius: 5px;
    cursor: pointer; 
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.go-to-cart-btn:hover {
    background-color: #f57c00;
}

.selected-specs-summary {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
    border-left: 3px solid #007bff;
}

.selected-specs-summary span {
    margin-right: 0.5rem;
}

.selected-specs-summary span:first-child {
    font-weight: bold;
    color: #333;
} 

.spec-option {
  padding: 0.5rem 1.2rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  background: #fff;
  color: #333;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}
.spec-option.active {
  border-color: #ff6700;
  color: #ff6700;
  background: #fff7f0;
  font-weight: bold;
}
.spec-option:hover {
  border-color: #ff6700;
  color: #ff6700;
}